import request from '@/utils/request'

// 查询上牌申请列表
export function listboardApply(query) {
  return request({
    url: '/enterprise/boardApply/list',
    method: 'get',
    params: query
  })
}

// 查询上牌申请详细
export function getboardApply(id) {
  return request({
    url: '/enterprise/boardApply/' + id,
    method: 'get'
  })
}

// 新增上牌申请
export function addboardApply(data) {
  return request({
    url: '/enterprise/boardApply',
    method: 'post',
    data: data
  })
}

// 修改上牌申请
export function updateboardApply(data) {
  return request({
    url: '/enterprise/boardApply',
    method: 'put',
    data: data
  })
}

// 删除上牌申请
export function delboardApply(id) {
  return request({
    url: '/enterprise/boardApply/' + id,
    method: 'delete'
  })
}

// 导出上牌申请
export function exportboardApply(query) {
  return request({
    url: '/enterprise/boardApply/export',
    method: 'get',
    params: query
  })
}

// /enterprise/boardApply/submit 

export function submit(data) {
  return request({
    url: '/enterprise/boardApply/submit',
    method: 'post',
    data: data
  })
}

// 获取站点预约时间数
export function checkApplyDay(data) {
  return request({
    url: '/enterprise/boardApply/checkApplyDay',
    method: 'post',
    data: data
  })
}